home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- # build the cd images
- # $1 = build number [1, 2, 3, etc.]
-
- BUILD_NUM_FILE=/opt/redmondlinux/builds/CURRENT_BUILD
- BUILD_NUM=`cat $BUILD_NUM_FILE`
-
- while [ "$#" -gt 0 ]
- do
-
- case "$1" in
-
- --test )
- TEST_ONLY=1
- shift
- ;;
-
- -* )
- echo -e `basename $0` [--test]: need build \#\\a
- exit 1
- ;;
-
- * )
- LANG="$1"
- shift
- ;;
-
- esac
-
- done
-
- if [ -z "$LANG" ]; then
- echo -e `basename $0` [--test]: need lang \#\\a
- exit 1
- fi
-
- BUILD_BASE=/opt/redmondlinux/builds/${BUILD_NUM}
- cd $BUILD_BASE
-
- LANG_TO_PROCESS=${LANG}*
- for a in $LANG_TO_PROCESS; do # each language
-
- # build the binary cd
- mkisofs -o /opt/redmondlinux/builds/iso/cd1_${a}_binary.iso \
- -l -R -r -D -L -J -T \
- -x ${BUILD_BASE}/${a}/BUGS \
- -x ${BUILD_BASE}/${a}/CHANGELOG \
- -x ${BUILD_BASE}/${a}/CHANGELOG.short \
- -x ${BUILD_BASE}/${a}/WISHLIST \
- -x ${BUILD_BASE}/${a}/rl/devel \
- -x ${BUILD_BASE}/${a}/rl/education \
- -x ${BUILD_BASE}/${a}/rl/extra/SRPMS \
- -x ${BUILD_BASE}/${a}/rl/games \
- -x ${BUILD_BASE}/${a}/rl/install/SRPMS \
- -x ${BUILD_BASE}/${a}/rl/internal \
- -x ${BUILD_BASE}/${a}/rl/laptop \
- -x ${BUILD_BASE}/${a}/rl/misc \
- -x ${BUILD_BASE}/${a}/rl/office \
- -x ${BUILD_BASE}/${a}/rl/server \
- -x ${BUILD_BASE}/${a}/rl/tools/SRPMS \
- -x ${BUILD_BASE}/${a}/rl/source \
- -b "boot/cdboot.288" \
- -c "boot/catalog" \
- -V "Amethyst $a binary CD build $BUILD_NUM" \
- -P "http://www.lycoris.com/" \
- -p "joseph cheek, joseph@lycoris.com" -A "" \
- "${BUILD_BASE}/${a}"
-
- # build the source cd
- mkisofs -o /opt/redmondlinux/builds/iso/cd2_${a}_source.iso \
- -l -R -r -D -L -J -T \
- -x ${BUILD_BASE}/${a}/BUGS \
- -x ${BUILD_BASE}/${a}/CHANGELOG \
- -x ${BUILD_BASE}/${a}/CHANGELOG.short \
- -x ${BUILD_BASE}/${a}/WISHLIST \
- -x ${BUILD_BASE}/${a}/autoplay.exe \
- -x ${BUILD_BASE}/${a}/autorun.inf \
- -x ${BUILD_BASE}/${a}/install.bat \
- -x ${BUILD_BASE}/${a}/col \
- -x ${BUILD_BASE}/${a}/floppy \
- -x ${BUILD_BASE}/${a}/rl/bin \
- -x ${BUILD_BASE}/${a}/rl/build-bin \
- -x ${BUILD_BASE}/${a}/rl/data \
- -x ${BUILD_BASE}/${a}/rl/devel \
- -x ${BUILD_BASE}/${a}/rl/education \
- -x ${BUILD_BASE}/${a}/rl/extra/RPMS \
- -x ${BUILD_BASE}/${a}/rl/games \
- -x ${BUILD_BASE}/${a}/rl/install/base \
- -x ${BUILD_BASE}/${a}/rl/install/RPMS \
- -x ${BUILD_BASE}/${a}/rl/internal \
- -x ${BUILD_BASE}/${a}/rl/laptop \
- -x ${BUILD_BASE}/${a}/rl/launch \
- -x ${BUILD_BASE}/${a}/rl/misc \
- -x ${BUILD_BASE}/${a}/rl/office \
- -x ${BUILD_BASE}/${a}/rl/server \
- -x ${BUILD_BASE}/${a}/rl/tools \
- -x ${BUILD_BASE}/${a}/live \
- -x ${BUILD_BASE}/${a}/winsetup \
- -x ${BUILD_BASE}/${a}/boot \
- -V "Amethyst $a source CD build $BUILD_NUM" \
- -P "http://www.lycoris.com/" \
- -p "joseph cheek, joseph@lycoris.com" -A "" \
- "${BUILD_BASE}/$a"
-
- # build the devtools cd
- mkisofs -o /opt/redmondlinux/builds/iso/cd3_${a}_devtools.iso \
- -l -R -r -D -L -J -T \
- -x ${BUILD_BASE}/${a}/BUGS \
- -x ${BUILD_BASE}/${a}/CHANGELOG \
- -x ${BUILD_BASE}/${a}/CHANGELOG.short \
- -x ${BUILD_BASE}/${a}/WISHLIST \
- -x ${BUILD_BASE}/${a}/autoplay.exe \
- -x ${BUILD_BASE}/${a}/autorun.inf \
- -x ${BUILD_BASE}/${a}/install.bat \
- -x ${BUILD_BASE}/${a}/floppy \
- -x ${BUILD_BASE}/${a}/rl/bin \
- -x ${BUILD_BASE}/${a}/rl/build-bin \
- -x ${BUILD_BASE}/${a}/rl/data \
- -x ${BUILD_BASE}/${a}/rl/education \
- -x ${BUILD_BASE}/${a}/rl/extra \
- -x ${BUILD_BASE}/${a}/rl/games \
- -x ${BUILD_BASE}/${a}/rl/install/RPMS \
- -x ${BUILD_BASE}/${a}/rl/install/SRPMS \
- -x ${BUILD_BASE}/${a}/rl/install/base \
- -x ${BUILD_BASE}/${a}/rl/internal \
- -x ${BUILD_BASE}/${a}/rl/laptop \
- -x ${BUILD_BASE}/${a}/rl/launch \
- -x ${BUILD_BASE}/${a}/rl/misc \
- -x ${BUILD_BASE}/${a}/rl/office \
- -x ${BUILD_BASE}/${a}/rl/server \
- -x ${BUILD_BASE}/${a}/rl/source \
- -x ${BUILD_BASE}/${a}/rl/tools \
- -x ${BUILD_BASE}/${a}/live \
- -x ${BUILD_BASE}/${a}/winsetup \
- -x ${BUILD_BASE}/${a}/boot \
- -V "Amethyst ${a} devtools CD build $BUILD_NUM" \
- -P "http://www.lycoris.com/" \
- -p "joseph cheek, joseph@lycoris.com" -A "" \
- "${BUILD_BASE}/$a"
-
- # build the gamepak/laptop/office/server/misc cd
- mkisofs -o /opt/redmondlinux/builds/iso/cd4_${a}_gamepak.iso \
- -l -R -r -D -L -J -T \
- -x ${BUILD_BASE}/${a}/BUGS \
- -x ${BUILD_BASE}/${a}/CHANGELOG \
- -x ${BUILD_BASE}/${a}/CHANGELOG.short \
- -x ${BUILD_BASE}/${a}/WISHLIST \
- -x ${BUILD_BASE}/${a}/autoplay.exe \
- -x ${BUILD_BASE}/${a}/autorun.inf \
- -x ${BUILD_BASE}/${a}/install.bat \
- -x ${BUILD_BASE}/${a}/floppy \
- -x ${BUILD_BASE}/${a}/rl/bin \
- -x ${BUILD_BASE}/${a}/rl/build-bin \
- -x ${BUILD_BASE}/${a}/rl/data \
- -x ${BUILD_BASE}/${a}/rl/devel \
- -x ${BUILD_BASE}/${a}/rl/extra \
- -x ${BUILD_BASE}/${a}/rl/install \
- -x ${BUILD_BASE}/${a}/rl/internal \
- -x ${BUILD_BASE}/${a}/rl/launch \
- -x ${BUILD_BASE}/${a}/rl/source \
- -x ${BUILD_BASE}/${a}/rl/tools \
- -x ${BUILD_BASE}/${a}/live \
- -x ${BUILD_BASE}/${a}/winsetup \
- -x ${BUILD_BASE}/${a}/boot \
- -V "Amethyst ${a} gamepak CD build $BUILD_NUM" \
- -P "http://www.lycoris.com/go/gamepak/" \
- -p "joseph cheek, joseph@lycoris.com" -A "" \
- "${BUILD_BASE}/$a"
-
- done
-
- # show cd directory
- /bin/ls -lth /opt/redmondlinux/builds/iso/.
-